/*
 * File: ./
 * Project: ./
 * Created Date: 2019年07月25日 09:30:00
 * Author: 惜纸
 * -----
 * Last Modified: 2019-07-28 20:07:07
 * Modified By: 惜纸
 * -----
 * email: xinpeicheng@yeah,net
 */
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import { plugin } from "vue-function-api";
import VueAwesomeSwiper from "vue-awesome-swiper";
import "swiper/dist/css/swiper.css";
// import $ from "./common/zepto.m.js";

/**
 * ui
 */

import "normalize.css";

import scroll from "vue-seamless-scroll";

const baseSize = 32;

window.onload = function() {
  const calc = document.documentElement.clientWidth / 750;
  document.documentElement.style.fontSize = baseSize * Math.min(calc, 2) + "px";
};

Vue.config.productionTip = false;

Vue.use(plugin)
  .use(VueAwesomeSwiper)
  .use(scroll);
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
